<%-- 
    Document   : Cliente
    Created on : 20/08/2013, 06:50:18 PM
    Author     : Alan Gonzalez
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<jsp:include page = "metadatos.jsp" flush = "True" />
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <h2>Cliente</h2>
    <c:if test="${principalOptica.errores != null}">
    
        <ul class="listaErrores" class="listaErrores">
            <c:forEach items="${principalOptica.errores}" var="error">
                <li><c:out value="${error}"/></li>c
            </c:forEach>
        </ul>
    </c:if>
    <fieldset>
        <legend>DATOS DEL CLIENTE</legend>
        <form method="post" action="../OpticaAdmin?action=nuevoCliente&index=2">
            <input type ="submit" value="GUARDAR"/>
            <table>
                <tr>
                    <td>NOMBRE(S)</td>
                    <td> <input type="text" name="nombres" onKeyup="this.value=txtalfanum(this.value)"/> </td>
                </tr>
                <tr>
                    <td>APELLIDO PATERNO:</td>
                    <td> <input type="text" name="appat"onKeyup="this.value=txtalfanum(this.value)"/> </td>
                </tr>
                <tr>
                    <td>APELLIDO MATERNO:</td>
                    <td> <input type="text" name="apmat"onKeyup="this.value=txtalfanum(this.value)"/> </td>
                </tr>
                <tr>
                    <td>DIRECCION:</td>
                    <td> <input type="text" name="dir" onKeyup="this.value=txtalfanum(this.value)"/> </td>
                </tr>
                <tr>
                    <td>TELEFONO:</td>
                    <td> <input type="text" name="tel"onKeyup="this.value=ventero(this.value)"/> </td>
                </tr>
                <tr>
                    <td>EMAIL:</td>
                    <td> <input type="text" name="email" onKeyup="this.value=txtalfanum(this.value)"/> </td>
                </tr>
                <tr>
                    <td>EDAD:</td>
                    <td> <input type="text" name="edad"  onKeyup="this.value=ventero(this.value)" /> </td>
                </tr>
            </table>
        </form>
    </fieldset>
</body>
</html>
